import time
import basic

a = basic.JwcMain()
print(time.ctime())
while True:
    if a.islogin():
        print("OK")
    else:
        a.login()
        print(time.ctime()+'   logout')
    time.sleep(60)
